package com.hqq.structure.proxy;

/**
 * Created by heqianqian on 2017/3/10.
 */
public class Proxy implements Sourceable {

    private Source source;

    public Proxy() {
        source = new Source();
    }

    @Override
    public void method1() {
        before();
        source.method1();
        after();
    }

    private void before(){
        System.out.println("before...");
    }

    private void after(){
        System.out.println("after...");
    }
}
